﻿using System;
using System.Collections.Generic;
using System.Data.Services;
using System.Data.Services.Common;
using System.Linq;
using System.ServiceModel.Web;
using System.Web;

namespace YourWorld.Web
{
    public class GreenWorldDataService : DataService<GreenWorldEntities>
    {
        // This method is called only once to initialize service-wide policies.
        public static void InitializeService( DataServiceConfiguration config )
        {
            config.SetEntitySetAccessRule( "*", EntitySetRights.All );
            config.SetServiceOperationAccessRule( "*", ServiceOperationRights.All );
            config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
        }
    }
}
